public class Solution {
    public static double Power(double base, int exponent) {
        if(base==0)
            return 0;
        else if(exponent==0){
            return 1;
        }else if(exponent>0){
            return base*Power(base,exponent-1);
        }else {
            return 1/base*Power(base,exponent+1);
        }
    }
    public static  void main(String args[]){
        double a = Power(2,-3);
        System.out.println(a);

    }
}